﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingWorkshop.IDAL;
using TrainingWorkshop.DALFactory;
using TrainingWorkshop.DAL_EF;

namespace TrainingWorkshop.DALFactory
{
    public class EFFactory:IFactory
    {
        public ITeacherRepository CreateTeacherRepository() {
            return new TeacherRepository_EF();
        }


        public ILevelRepository CreateLevelRepository()
        {
            return  new LevelRepository_EF();
        }


        public ICourseListRepository CreateCourseListRepository()
        {
            return  new CourseListRepository_EF();
        }


        public IStudentRepository CreateStudentRepository()
        {
           return new StudentRepository_EF();
        }


        public ICourseRepository CreateCourseRepository()
        {
            return  new CourseRepository_EF();
        }


        public ICourseDetailRepository CreateCourseDetailRepository()
        {
            return new CourseDetailRepository_EF();
        }
    }
}
